package com.daotingli.back;

import com.daotingli.back.controller.cofig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class BackApplication {
    @Autowired
    public cofig cofig;
    public static void main(String[] args) {
        ConfigurableApplicationContext  context = SpringApplication.run(BackApplication.class, args);
        cofig cofig = context.getBean(cofig.class);
        System.out.println("http://localhost:"+cofig.getPort());
        Bean bena= Bean.builder().name("name").value("value").type("type").desc("desc").example("example").remark("remark").version("version").status("status").build();
        
        System.out.println(bena);

    }

}
